package com.tancire.net.domain;

import java.math.BigDecimal;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.tancire.common.annotation.Excel;
import com.tancire.common.core.domain.BaseEntity;

/**
 * 认证日志对象 auth_log
 *
 * @author chenchao
 * @date 2023-12-06
 */
public class AuthLog extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 资源ID
     */
    @Excel(name = "资源ID")
    private Long authId;

    /**
     * 资源编码
     */
    @Excel(name = "资源编码")
    private String authCode;

    /**
     * 资源消耗积分
     */
    @Excel(name = "资源消耗积分")
    private BigDecimal authPrice;

    /**
     * 会员ID
     */
    @Excel(name = "会员ID")
    private Long userId;

    /**
     * 会员名称
     */
    @Excel(name = "会员名称")
    private String userName;

    /**
     * 日志描述
     */
    @Excel(name = "日志描述")
    private String logRemark;

    /**
     * 操作人名称
     */
    @Excel(name = "操作人名称")
    private String createByName;

    /**
     * 账号类型 0 系统 1 会员 2 公司
     */
    @Excel(name = "账号类型 0 系统 1 会员 2 公司")
    private Integer sysFlag;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setAuthId(Long authId) {
        this.authId = authId;
    }

    public Long getAuthId() {
        return authId;
    }

    public void setAuthCode(String authCode) {
        this.authCode = authCode;
    }

    public String getAuthCode() {
        return authCode;
    }

    public void setAuthPrice(BigDecimal authPrice) {
        this.authPrice = authPrice;
    }

    public BigDecimal getAuthPrice() {
        return authPrice;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserName() {
        return userName;
    }

    public void setLogRemark(String logRemark) {
        this.logRemark = logRemark;
    }

    public String getLogRemark() {
        return logRemark;
    }

    public void setCreateByName(String createByName) {
        this.createByName = createByName;
    }

    public String getCreateByName() {
        return createByName;
    }

    public void setSysFlag(Integer sysFlag) {
        this.sysFlag = sysFlag;
    }

    public Integer getSysFlag() {
        return sysFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("authId", getAuthId())
                .append("authCode", getAuthCode())
                .append("authPrice", getAuthPrice())
                .append("userId", getUserId())
                .append("userName", getUserName())
                .append("logRemark", getLogRemark())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .append("createByName", getCreateByName())
                .append("sysFlag", getSysFlag())
                .toString();
    }
}
